#include <iostream>
#include "Cola.h"

using namespace std;

void main()
{
	Cola c;

	int iTopIndex = 0;
	int iNum = 0;

	c.Agregar(3);
	c.Agregar(35);
	c.Agregar(150);
	c.Agregar(555);
	c.Agregar(1);

	cout << "Top index " << c.getIndex() << endl;

	if(c.Sacar(iNum))
	{
		cout << "Saque " << iNum << endl;
	}
	else
	{
		cout << "no hay un joraca" << endl;
	}

	if(c.Sacar(iNum))
	{
		cout << "Saque " << iNum << endl;
	}
	else
	{
		cout << "no hay un joraca" << endl;
	}
	
	//Sigo sin saber como salir xD
	cin >> iNum;
}